<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="fragments/_header :: _head('添加用户')"></head>
<body>
<div class="ok-body">
    <form class="layui-form layui-form-pane ok-form">
        <div class="layui-form-item">
            <label class="layui-form-label">上级菜单</label>
            <div class="layui-input-block">
                <input id="id" type="text" name="id" autocomplete="off" class="layui-hide" th:value="${sysMenu.id}">
                <input id="pid" type="text" name="pid" autocomplete="off" class="layui-hide" th:value="${pid}">
                <input id="pName" name="pName" th:value="${pName}" class="layui-input" type="text" lay-filter="menuTree" readonly="true">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单类型</label>
            <div class="layui-input-block">
                <input type="radio" th:field="*{sysMenu.type}" name="type" value="0" title="目录">
                <input type="radio" th:field="*{sysMenu.type}" name="type" value="1" title="菜单">
                <input type="radio" th:field="*{sysMenu.type}" name="type" value="2" title="按钮">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" th:value="${sysMenu.name}" placeholder="请输入菜单名称" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">链接地址</label>
            <div class="layui-input-block">
                <input type="text" name="url" th:value="${sysMenu.url}" placeholder="请输入链接地址" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">页面地址</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input type="text" name="showUrl" th:value="${sysMenu.showUrl}" placeholder="请输入页面地址" autocomplete="off" class="layui-input" lay-verify="required">-->
            <!--</div>-->
        <!--</div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">权限标识</label>
            <div class="layui-input-block">
                <input type="text" name="perms" th:value="${sysMenu.perms}" placeholder="请输入权限标识" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序号</label>
            <div class="layui-input-block">
                <input type="text" name="orderNum" th:value="${sysMenu.orderNum}" placeholder="请输入排序号" autocomplete="off" class="layui-input" lay-verify="required|number">
            </div>
        </div>
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">图标</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input type="text" name="icon" th:value="${sysMenu.icon}" placeholder="请输入图标class" autocomplete="off" class="layui-input">-->
            <!--</div>-->
        <!--</div>-->
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="add">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
</div>
<!--js逻辑-->
<div th:include="fragments/_footer :: _footer"></div>
<script src="/js/system/menu/edit.js"></script>
</body>
</html>